<?php
	require_once($_SERVER['DOCUMENT_ROOT']."/classes/Account.class.php");
	require_once($_SERVER['DOCUMENT_ROOT']."/includes/sugar.php");
	session_start();
	if($_SESSION['account']->deleteMember($_POST['id'])){
		$array['errMess'] = getErrMess(13);
		$array['status'] = 1;
	}
	else
	{
		$array['errMess'] = getErrMess(12);
		$array['status'] = 0;
	}
	$array['id'] = $_POST['id'];
	echo json_encode($array);
?>